/**
 * @description 作为多页面模式下，配置界面
 * @author xiaomw
 * @date 2024/1/23
 */
const pageConfig = {
  pageList: [
    {
      item: {
        name: 'index',
        filename: 'index.html',
        entry: 'src/tyMain.js',
        template: 'public/index.html',
        chunks: ['chunk-libs', 'chunk-common', 'index']
      },
      fileBlacklist: []
    },
    {
      item: {
        name: 'similarIntegrationIndex',
        filename: 'similar-integration-index.html',
        entry: 'src/tyMain-similar-integration.js',
        template: 'public/similar-integration-index.html',
        chunks: ['chunk-libs', 'chunk-common', 'similarIntegrationIndex']
      },
      fileBlacklist: []
    },
    {
      item: {
        name: 'tsWebIndex',
        filename: 'tsweb-index.html',
        entry: 'src/tyMain-ts-web.js',
        template: 'public/tsweb-index.html',
        chunks: ['chunk-libs', 'chunk-common', 'tsWebIndex']
      },
      fileBlacklist: []
    }
  ],
  splitChunksCacheGroupsOptions: [
    {
      chunkTitle: 'libs',
      name: 'chunk-libs',
      priority: 10,
      test: {
        isRegExp: true,
        urlOrRegExp: '/[\\/]node_modules[\\/]/'
      }
    },
    {
      chunkTitle: 'comm',
      name: 'chunk-common',
      priority: 30,
      test: {
        urlOrRegExp: 'src'
      }
    }
  ]
};
module.exports = pageConfig;
